package JavaSE.TCPUDPLearning.InetAddressLearning;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class Demo {
    public static void main(String[] args) throws UnknownHostException {
        InetAddress local = InetAddress.getByName("张磊");
        System.out.println(local);
        System.out.println(local.getHostAddress());
    }
}
